package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
@Controller
public class UserController {
    @Autowired
    @Qualifier(value = "user2")
    private User user;

    public void hello() {
        System.out.println("hello, " + user);
    }
}
